package com.wei.czz.common.dto.blog;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-05-28 17:57:00
 * className: SortBlogDto 系统首页面-博客排行列表-显示内容封装对象
 * version: 1.0
 * description:
 *  `@JsonInclude(JsonInclude.Include.NON_EMPTY)`：接口返回对象时，如果某个字段值为空，序列化不操作该字段
 */
@Getter
@Setter
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SortBlogDto extends BaseEntity {

    /**
     * 博客id
     * 
     */
    private String blogId;

    /**
     * 博客标题
     */
    private String title;

    /**
     * 博客被浏览量
     */
    private Integer viewNum;

    /**
     * 博客发布时间
     */
    private Date time;

}
